package com.aquila.bible.utils;

import android.view.View;
import android.widget.LinearLayout;

import com.aquila.bible.MyBaseActivity;
import com.aquila.bible.R;


public class BookShelfUtil  {
	public MyBaseActivity activity ;
	
	private LinearLayout firstLayout, secondLayout, thirdLayout ;
	
	
	public BookShelfUtil(MyBaseActivity activity) {
		this.activity = activity ;
		firstLayout = (LinearLayout) activity.findViewById(R.id.linearlayout_01) ;
		secondLayout = (LinearLayout) activity.findViewById(R.id.linearlayout_02) ;
		thirdLayout = (LinearLayout) activity.findViewById(R.id.linearlayout_03) ;
	}
	public BookShelfUtil(View view) {
		firstLayout = (LinearLayout) view.findViewById(R.id.linearlayout_01) ;
		secondLayout = (LinearLayout) view.findViewById(R.id.linearlayout_02) ;
		thirdLayout = (LinearLayout) view.findViewById(R.id.linearlayout_03) ;
	}
	
	public void addFirstView(View view){
		firstLayout.removeAllViews() ;
		firstLayout.addView(view) ;
	}
	public void addSecondView(View view){
		secondLayout.removeAllViews() ;
		secondLayout.addView(view) ;
	}
	public void addThirdView(View view){
		thirdLayout.removeAllViews() ;
		thirdLayout.addView(view) ;
	}
	
	
	
	

}
